package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_site_user")
public class SiteUser extends Model<SiteUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 班组ID
     */
    private Long teamId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 企业ID
     */
    private Long qiyeId;
    /**
     * 工地ID
     */
    private Long siteId;
    /**
     * 订单编号
     */
    private Long subId;
    /**
     * 每日薪资
     */
    private String daySalary;
    /**
     * 是否是管理员 1--普通用户 2--工地管理员
     */
    private Integer manageType;
    /**
     * 数据来源 1--订单 2--手动添加
     */
    private Integer sourceType;
    /**
     * 工种ID
     */
    private Long workTypeId;
    /**
     * 创建人ID
     */
    private Long createUserId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 是否删除 0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 劳务公司
     */
    private String laborCompany;
    /**
     * 劳务公司id
     */
    private Long laborCompanyId;
    /**
     * 安全信息图片
     */
    private String safetyUrl;
    /**
     * 劳务合同
     */
    private String laborUrl;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getQiyeId() {
        return qiyeId;
    }

    public void setQiyeId(Long qiyeId) {
        this.qiyeId = qiyeId;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Long getSubId() {
        return subId;
    }

    public void setSubId(Long subId) {
        this.subId = subId;
    }

    public String getDaySalary() {
        return daySalary;
    }

    public void setDaySalary(String daySalary) {
        this.daySalary = daySalary;
    }

    public Integer getManageType() {
        return manageType;
    }

    public void setManageType(Integer manageType) {
        this.manageType = manageType;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public Long getWorkTypeId() {
        return workTypeId;
    }

    public void setWorkTypeId(Long workTypeId) {
        this.workTypeId = workTypeId;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getLaborCompany() {
        return laborCompany;
    }

    public void setLaborCompany(String laborCompany) {
        this.laborCompany = laborCompany;
    }

    public Long getLaborCompanyId() {
        return laborCompanyId;
    }

    public void setLaborCompanyId(Long laborCompanyId) {
        this.laborCompanyId = laborCompanyId;
    }

    public String getSafetyUrl() {
        return safetyUrl;
    }

    public void setSafetyUrl(String safetyUrl) {
        this.safetyUrl = safetyUrl;
    }

    public String getLaborUrl() {
        return laborUrl;
    }

    public void setLaborUrl(String laborUrl) {
        this.laborUrl = laborUrl;
    }

    public static final String ID = "id";

    public static final String TEAM_ID = "team_id";

    public static final String USER_ID = "user_id";

    public static final String QIYE_ID = "qiye_id";

    public static final String SITE_ID = "site_id";

    public static final String SUB_ID = "sub_id";

    public static final String DAY_SALARY = "day_salary";

    public static final String MANAGE_TYPE = "manage_type";

    public static final String SOURCE_TYPE = "source_type";

    public static final String WORK_TYPE_ID = "work_type_id";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String LABOR_COMPANY = "labor_company";

    public static final String LABOR_COMPANY_ID = "labor_company_id";

    public static final String SAFETY_URL = "safety_url";

    public static final String LABOR_URL = "labor_url";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SiteUser{" +
        "id=" + id +
        ", teamId=" + teamId +
        ", userId=" + userId +
        ", qiyeId=" + qiyeId +
        ", siteId=" + siteId +
        ", subId=" + subId +
        ", daySalary=" + daySalary +
        ", manageType=" + manageType +
        ", sourceType=" + sourceType +
        ", workTypeId=" + workTypeId +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", delFlag=" + delFlag +
        ", laborCompany=" + laborCompany +
        ", laborCompanyId=" + laborCompanyId +
        ", safetyUrl=" + safetyUrl +
        ", laborUrl=" + laborUrl +
        "}";
    }
}
